All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.ColorChooserPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JPanel
                                   |
                                   +----com.sun.java.swing.ColorChooserPanel

public abstract class ColorChooserPanel
extends JPanel
The is the abstract superclass for color choosers. If you want to add a new color chooser panel into a JColorChooser, sublclass this class.

Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.


Variable Index

 o COLOR_PROPERTY
 o preferredSize

Constructor Index

 o ColorChooserPanel()

Method Index

 o fireColorPropertyChange(Color, Color)
 o getColor()
 o getPreferredSize()
If the preferredSize has been set to a non-null value just return it.
 o installChooserPanel()
This get called when the panel is added to the chooser.
 o setColor(Color)
 o uninstallChooserPanel()
This get called when the panel is removed from the chooser.

Variables

 o COLOR_PROPERTY
 public static final String COLOR_PROPERTY
 o preferredSize
 protected static final Dimension preferredSize

Constructors

 o ColorChooserPanel
 public ColorChooserPanel()

Methods

 o setColor
 public abstract void setColor(Color newColor)
 o getColor
 public abstract Color getColor()
 o fireColorPropertyChange
 protected void fireColorPropertyChange(Color oldColor,
                                        Color newColor)
 o getPreferredSize
 public Dimension getPreferredSize()
If the preferredSize has been set to a non-null value just return it.

Overrides:
getPreferredSize in class JComponent
 o installChooserPanel
 public void installChooserPanel()
This get called when the panel is added to the chooser.

 o uninstallChooserPanel
 public void uninstallChooserPanel()
This get called when the panel is removed from the chooser.


All Packages  Class Hierarchy  This Package  Previous  Next  Index